<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>深圳市华富快捷电子有限公司 - 送货单</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: "Microsoft YaHei", "SimSun", "宋体", serif;
      color: #000;
    }

    body {
      background-color: #fff;
      padding: 15px;
      line-height: 1.4;
      font-size: 12px;
    }

    .container {
      max-width: 100%;
      margin: 0 auto;
      background: #fff;
      border: 1px solid #000;
      position: relative;
      padding: 20px;
    }

    .company-header {
      text-align: center;
      margin-bottom: 15px;
      position: relative;
      z-index: 1;
    }

    .company-name {
      font-size: 18px;
      font-weight: bold;
      letter-spacing: 2px;
      margin-bottom: 6px;
    }

    .company-address {
      font-size: 12px;
      margin-bottom: 20px;
    }

    .document-title {
      text-align: center;
      font-size: 24px;
      font-weight: bold;
      letter-spacing: 12px;
      padding: 12px 0;
      margin-bottom: 20px;
      border-top: 2px solid #000;
      border-bottom: 2px solid #000;
    }

    .delivery-info {
      display: table;
      width: 100%;
      margin-bottom: 20px;
      font-size: 12px;
      table-layout: fixed;
    }

    .receiver-info {
      display: table-cell;
      width: 60%;
      vertical-align: top;
      padding-right: 20px;
    }

    .document-info {
      display: table-cell;
      width: 40%;
      vertical-align: top;
      text-align: right;
    }

    .products-table {
      width: 100%;
      border-collapse: collapse;
      margin-bottom: 20px;
      font-size: 10px;
    }

    .products-table th {
      border: 1px solid #000;
      padding: 6px 3px;
      text-align: center;
      font-weight: bold;
      background: #f8f8f8;
      font-size: 10px;
    }

    .products-table td {
      border: 1px solid #000;
      padding: 4px 3px;
      text-align: center;
      font-size: 10px;
    }

    .notes {
      margin-bottom: 20px;
      padding: 12px;
      border: 1px solid #000;
      font-size: 11px;
      line-height: 1.6;
    }

    .copy-info {
      text-align: center;
      margin-bottom: 20px;
      font-size: 12px;
      padding: 8px 0;
      border-top: 1px dashed #000;
      border-bottom: 1px dashed #000;
    }

    .signature-area {
      display: table;
      width: 100%;
      margin-top: 20px;
      table-layout: fixed;
    }

    .signature-box {
      display: table-cell;
      width: 50%;
      vertical-align: top;
      padding: 5px;
    }

    .signature-box:first-child {
      border-right: 1px solid #000;
      padding-right: 15px;
    }

    .signature-box:last-child {
      padding-left: 15px;
    }

    .signature-box p {
      padding-bottom: 6px;
      border-bottom: 1px solid #000;
      margin-bottom: 12px;
      font-size: 11px;
    }

    .print-controls {
      text-align: center;
      margin-top: 20px;
    }

    .print-btn {
      padding: 8px 24px;
      background: #fff;
      border: 1px solid #000;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s;
    }

    .print-btn:hover {
      background: #f0f0f0;
    }

    @media print {
      .print-controls {
        display: none;
      }
      body {
        padding: 0;
      }
      .container {
        border: none;
        padding: 15px;
      }
    }
  </style>
</head>
<body>
<div class="container">
  <div class="company-header">
    <div class="company-name">深圳市华富快捷电子有限公司</div>
    <div class="company-address">深圳市宝安区沙井镇大王山兴业东路一号华富工业园1栋 电话：18716657820</div>
  </div>

  <div class="document-title">送 货 单</div>

  <div class="delivery-info">
    <div class="receiver-info">
      收货单位：${客户名称}
    </div>
    <div class="document-info">
      NO: ${送货单号}<br>
      送货日期：${送货日期}
    </div>
  </div>

  <table class="products-table">
    <thead>
    <tr>
      <th width="5%">序号</th>
      <th width="12%">出库单号</th>
      <th width="15%">物料编码</th>
      <th width="20%">产品名称</th>
      <th width="5%">单位</th>
      <th width="8%">订单数量</th>
      <th width="8%">出货数量</th>
      <th width="8%">欠数</th>
      <th width="8%">备品</th>
      <th width="11%">备注</th>
    </tr>
    </thead>
    <tbody>
    ${出库物料详情行}
    </tbody>
  </table>

  <div class="notes">
    <p>(1) 本送货单经贵司代表签字之后即为我司之收款依据。</p>
    <p>(2) 如贵司对本送货单所收货物数量及质量有异议须在7天内提出，否则视为被贵司接受。</p>
  </div>

  <div class="copy-info">
    一式四联：白(存根)　　　　红(客户)　　　　蓝(回单)　　　　黄(财务)
  </div>

  <div class="signature-area">
    <div class="signature-box">
      <p>送货单位及经手人(盖章):</p>
      <p>日期：${当前日期}</p>
    </div>
    <div class="signature-box">
      <p>收货单位及经手人(盖章):</p>
      <p>日期：　　　年　　月　　日</p>
    </div>
  </div>

  <div class="print-controls">
    <button class="print-btn" onclick="window.print()">打印送货单</button>
  </div>
</div>
</body>
</html>
